package link.hwx.service.oa.impl;

import com.baomidou.dynamic.datasource.annotation.DS;

import link.hwx.entity.oa.OaBillInfoVo;
import link.hwx.mapper.oa.OaSupplierInfoMapper;
import link.hwx.service.oa.OaSupplierInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@DS("OAData")
@Service
public class OaSupplierServiceImpl implements OaSupplierInfoService {

    @Autowired
    private OaSupplierInfoMapper supplierInfoMapper;


    @Override
    public int updateSupplierIdByRequestId(String supplierMainTableName, String requestid, String srmsupplierid) {
        return supplierInfoMapper.updateSupplierIdByRequestId(supplierMainTableName, requestid, srmsupplierid);
    }

    @Override
    public OaBillInfoVo findSupplierInfoByRequestId(String supplierMainTableName, String requestId) {
        return supplierInfoMapper.findSupplierInfoByRequestId(supplierMainTableName, requestId);
    }
}
